package com.gs.nettywebsocket.controller;

import com.gs.nettywebsocket.websocket.NettyWebsocket;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyWebsocketController {


    @PostMapping("/broadcast")
    public void broadcastMsg(String msg) {
        NettyWebsocket.broadcast(msg);
    }


}
